//
//  RequestModel.swift
//  CMCCIOTSwift
//
//  Created by xukai on 2017/4/23.
//  Copyright © 2017年 isoftstone. All rights reserved.
//

import Foundation
import HandyJSON
class RequestModel: RequestProtocol,HandyJSON {
    override public var baseURL: NSURL{
        return NSURL(string:"https://rxswift.leanapp.cn")!
    }
    
    override public var parameters: [String : AnyObject]?{
        let params = self.toJSON() as [String : AnyObject]?
        if params?.count == 0 {
            return nil;
        }
        
        return self.toJSON() as [String : AnyObject]?
    }
    
  
    override public var encoding: EncodingType{
        return  URLEncoding.default;
    }
    
    required override init() {
        
    }
    

}
